import { Field, Int, ObjectType } from '@nestjs/graphql';

@ObjectType('Problem')
export class Problem {
  @Field(() => Int)
  _id: number;

  @Field()
  name: string;

  @Field()
  categoryId: number;

  @Field()
  content: string;

  @Field()
  verifyCode: string;
}
